using Sirenix.OdinInspector;
using UnityEngine;

namespace Custom.Daily.Toolkit
{
    public class ToggleEvent : MonoBehaviour
    {
        [LabelText("日期选择管理器")]
        public CalendarSelectManager manager;
        [LabelText("日期")]
        public Calendar calendar;

        private void Start()
        {
            transform.GetComponent<ToggleController>().onValueChanged.AddListener((val) =>
            {
                manager.DayToggleClick(val, calendar);
            });
        }

    }
}
